package com.zl.learning.thread.concurrent;

public class VisibilityHP1 {

    private int a = 1;
    private int b = 2;

    public static void main(String[] args) {

    }

    public void write() {
        a = 3;
        b = 1;
    }

    public void read() {
        System.out.printf("b=%d,a=%d", b, a);
    }
}
